Skip to content

[Commands] Port package refactoring commands to use refactoring actions from swift-syntax #9016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 12, 2025

Motivation:

The package manifest refactoring actions are now located in swift-syntax to make it possible to use them across swift-aligned projects like package manager, SourceKit-LSP, and the compiler itself. The first step in support of this transition is to remove the original versions and migrate the users.

Modifications:

  • Add{Setting, Target, Dependency, TargetDependency} commands have been ported to use refactoring actions from swift-syntax repository that are currently guarded by PackageRefactor SPI.
  • The original versions of the refactorings are now removed from the package manager.

Result:

All of the package refactoring commands now use refactoring actions from swift-syntax repository.

@xedin
Copy link
Contributor Author

xedin commented Aug 12, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 12, 2025

@swift-ci please test self hosted Linux

@xedin
Copy link
Contributor Author

xedin commented Aug 12, 2025

@swift-ci please test Linux self hosted

@xedin
Copy link
Contributor Author

xedin commented Aug 12, 2025

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Aug 13, 2025

swiftlang/sourcekit-lsp#2235
@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 13, 2025

@swift-ci please test

@xedin xedin force-pushed the use-refactorings-from-syntax branch from 4778840 to ab54292 Compare August 13, 2025 20:39
@xedin
Copy link
Contributor Author

xedin commented Aug 13, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 13, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Aug 13, 2025

@swift-ci please test self hosted Windows platform

@xedin
Copy link
Contributor Author

xedin commented Aug 14, 2025

swiftlang/sourcekit-lsp#2239
@swift-ci please test Windows self hosted

@xedin
Copy link
Contributor Author

xedin commented Aug 14, 2025

swiftlang/sourcekit-lsp#2239
@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Aug 14, 2025

swiftlang/sourcekit-lsp#2239
@swift-ci please test macOS self hosted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants